<template>
	<view class="tpage">
		<view class="list-tab">
			<view class="list-item" v-for="(item, itemIndex) of list" :key="itemIndex">
				<view class="list-item-left">
					<image class="avatar" :src="item.headimg || 'http://cdn.cqtouquan.com/assets/images/uniapp/mall/default-headimg.png'" mode=""></image>
					<view>{{item.nickname || '会员昵称'}}</view>
				</view>
				<view class="list-item-right">
					<view>{{item.create_time}}</view>
				</view>
			</view>
		</view>
		<uni-load-more :status="loadMoreStatus"></uni-load-more>
	</view>
</template>

<script>
	import data from '@/data/ucenter/recommend-list/recommend-list.js';

	export default {
		data() {
			return {
				list: [],
				loadMoreStatus : "more",
				pageData:{
					last_page:1,
					total:1
				},
				postData:{
					current_page:1,
					per_page:10,
					page:1,
				},
				
			}
		},
		async created() {
			const RecommendListData = data.RecommendList();
			this.list = await RecommendListData;
		}
	}
</script>

<style lang="scss" scoped>
	.tpage{
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		background-color: $uni-bg-color;
	}
	.list-tab{
		display: flex;
		flex-direction: column;
		padding: 0rpx 20rpx;
	}
	.avatar{
		width: 90rpx;
		height: 90rpx;
		border-radius: $uni-border-radius-circle;
		margin-right: $uni-spacing-row-sm;
	}
	.list-item{
		display: flex;
		justify-content: space-between;
		align-items: center;
		border-bottom: 1px solid #cecece;
		height: 130rpx;
		font-size: $uni-font-size-base;
	}
	.list-item-left{
		display: flex;
		align-items: center;
	}
</style>
